// const _import = require('@/router/_import_' + process.env.NODE_ENV)

export default [
  {
    id: 1, // 用于权限菜单编辑时树形菜单所用
    path: '/',
    name: 'index',
    redirect: '/base/echart',
    meta: {
      auth: null, // 用于存放页面中的权限按钮的接口
      isAuth: true, // 用于判断子页面中是否有权限按钮
      requireAuth: true
    }
  },
  {
    id: 2,
    path: '/base',
    name: 'base',
    redirect: '/base/echart',
    meta: {
      requireAuth: true
    },
    children: [
      {
        id: 4,
        path: '/base/echart',
        name: 'echart',
        component: 'base/echart/echart',
        meta: {
          requireAuth: true
        }
      },
      {
        id: 5,
        path: '/base/table',
        name: 'table',
        component: 'base/table/table',
        meta: {
          requireAuth: true
        }
      },
      {
        id: 6,
        path: '/base/menu1',
        name: 'menu1',
        component: 'base/menu1/menu1',
        meta: {
          requireAuth: true
        }
      },
      {
        id: 7,
        path: '/base/menu2',
        name: 'menu2',
        component: 'base/menu2/menu1',
        meta: {
          requireAuth: true
        },
        children: [{
          id: 8,
          path: '/base/menu2/menu3',
          name: 'menu13',
          component: 'base/menu3/menu1',
          meta: {
            requireAuth: true
          }
        }, {
          id: 9,
          path: '/base/menu2/menu4',
          name: 'menu4',
          component: 'base/menu4/menu1',
          meta: {
            requireAuth: true
          }
        }]
      },
      {
        id: 10,
        path: '/base/menu5',
        name: 'menu5',
        component: 'base/menu5/menu1',
        meta: {
          requireAuth: true
        }
      }],
    components: {
      header: 'header/header',
      content: 'base/index'
    }
  },
  {
    id: 3,
    path: '/admin',
    name: 'admin',
    components: {
      header: 'header/header',
      content: 'admin/index'
    },
    meta: {
      requireAuth: true
    }
  }
]
